<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表格</title>
</head>
<body>
    <table border="1" width="100%">
        <tr>
            <td>姓名</td>
            <td>年龄</td>
            <td>性别</td>
        </tr>
        <tr>
            <td>小明</td>
            <td>33</td>
            <td>男</td>
        </tr>
        <tr>
            <td>小花</td>
            <td>23</td>
            <td>女</td>
        </tr>
        <tr>
            <td>小东</td>
            <td>33</td>
            <td>男</td>
        </tr>
    </table>

    <table border="1" width="100%" cellpadding="0" cellspacing="0">
        <caption>学生统计信息表</caption>

        <colgroup>
            <col span="2" style="background-color:yellow;color:red" />
            <col style="background-color:red" />
        </colgroup>

        <thead>
            <tr>
                <th>姓名</th>
                <th>年龄</th>
                <th>性别</th>
            </tr>
        </thead>
        <tfoot>
            <tr>
                <td></td>
                <td colspan="2" dir="rtl">统计: 30%</td>
            </tr>
        </tfoot>
        <tbody>
            <tr>
                <td rowspan="2">小明</td>
                <td>33</td>
                <td>男</td>
            </tr>
            <tr>
                <td>23</td>
                <td>女</td>
            </tr>
            <tr>
                <td>小东</td>
                <td>33</td>
                <td>男</td>
            </tr>
        </tbody>
    </table>

</body>
</html>
